package storage;

import java.util.EnumSet;

public enum TaskStatus {
	INCOMPLETE("Incomplete"), COMPLETE("Complete");

	private String value_;

	TaskStatus(String value) {
		this.value_ = value;
	}

	public String toString() {
		return value_;
	}

	public static TaskStatus getByValue(String value) {
		TaskStatus returnValue = null;
		for (final TaskStatus element : EnumSet.allOf(TaskStatus.class)) {
			if (element.toString().equals(value)) {
				returnValue = element;
			}
		}
		return returnValue;
	}
}